﻿@using Sprint1.Models;
@model IEnumerable<Course>

@{
    ViewBag.Title = "My Courses";
}
<div style="font-family:Arial">
    <h2>My Courses</h2>
    @if (Model !=null)
    {
            <ul>
        @foreach (Course course in @Model)
        {
            <li>
                @Html.ActionLink(course.Name, "CourseInfo", new { id = course.Id })
            </li>
             <li>
                @Html.ActionLink("ASk", "AskQuestion","Course")
                @Session["requestid"] = course.Id;
            </li>
            
             <li>
                @Html.ActionLink("Questions and Answers", "Q_A","Course")
                @Session["requestid"] = course.Id;
            </li>
        }
    </ul>
    }

    @Html.ActionLink("Find Course", "FindCourse")
</div>